<template>
	<view>
		<image class="image-bg" :src="$t.URL.image + "></image>
		<view class="page-bg">
			<view class="sub-bg">
				<view class="title">请选择您的身份</view>
				<view @click="selectedType" class="section" data-type="1" style="background-color:rgb(90,160,245)">
					<image src="/static/login/type1.png"></image>
					<view class="right-view">
						<view class="type-name">学生校友</view>
						<view class="type-desc">曾在学校学习，及在校同学</view> 
					</view>
				</view>
				<!-- <view @click="selectedType" class="section" data-type="2" style="background-color:rgb(102,177,79)">
					<image src="../../static/images/type3.png"></image> 
					<view class="right-view">
						<view class="type-name">毕业校友</view>
						<view class="type-desc">在校学习过，已毕业</view>
					</view>
				</view> -->
				<view @click="selectedType" class="section" data-type="2" style="background-color:rgb(243,146,82)">
					<image src="/static/login/type2.png"></image>
					<view class="right-view">
						<view class="type-name">职工校友</view>
						<view class="type-desc">曾在学校工作，及在职教师</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		/**
		 * 用户点击右上角分享
		 */
		nShareAppMessage: function() {
			return {
				title: "",
				path: "/pages/none_page/none_page"
			};
		},
		methods: {
			selectedType: function(n) {
				wx.navigateTo({
					url: "../base_info/base_info?type=" + n.currentTarget.dataset.type
				});
			},
			//获取认证图片
			srcX:function(){
				return getApp().globalData.Link+'file/system/认证.jpg';
			}
		}

	}
</script>

<style>
	.image-bg {
		position: fixed;
		width: 100%;
		height: 100%;
	}

	.page-bg {
		position: fixed;
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background: rgba(0, 0, 0, 0.45);
	}

	.sub-bg {
		width: 446rpx;
		height: 804rpx;
		margin-top: 100rpx;
	}

	.title {
		width: 446rpx;
		height: 40rpx;
		line-height: 40rpx;
		text-align: center;
		font-size: 36rpx;
		color: white;
		margin-bottom: 22rpx;
	}

	.section {
		width: 446rpx;
		height: 160rpx;
		border-radius: 16rpx;
		display: flex;
		flex-direction: row;
		margin-bottom: 34rpx;
	}

	.section image {
		margin-left: 30rpx;
		margin-top: 30rpx;
		width: 100rpx;
		height: 100rpx;
	}

	.right-view {
		margin-left: 30rpx;
		width: 220rpx;
		height: 160rpx;
	}

	.type-name {
		margin-top: 41rpx;
		width: 220rpx;
		height: 40rpx;
		line-height: 40rpx;
		font-size: 28rpx;
		color: white;
	}

	.type-desc {
		margin-top: 6rpx;
		width: 220rpx;
		height: 28rpx;
		line-height: 28rpx;
		font-size: 20rpx;
		color: white;
	}
</style>
